package com.inspection.controller.sys;

import com.inspection.model.vo.UserMenuVO;
import com.inspection.service.SysMenuService;
import com.inspection.support.Wrapper;
import com.inspection.support.model.MenuDataTree;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhaoqi
 * @since 2020-12-08
 */
@RestController
public class UserController {

    @Autowired
    private SysMenuService sysMenuService;



   @RequestMapping("/user/menu/obtain")
    private Wrapper<UserMenuVO> obtainAuth(){
      return Wrapper.ok(sysMenuService.obtainUserAuth());
    }



}
